<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>联系方式</title>   
    <link rel="stylesheet" href="css/all.css"> <!-- 正确路径 -->
    <script src="js/all.js"></script> <!-- 正确路径 -->
    <link rel="stylesheet" href="css/contact.css"> <!-- 正确路径 -->
    <script src="js/contact.js"></script> <!-- 正确路径 -->

</head>
<body>

    <header class="main-header">
        <nav>
            <ul class="nav-list">
                <li><a href="index.html" class="active">首页</a></li>
                <li><a href="about.html">关于我</a></li>
                <li><a href="blog.html">技术博客</a></li>
                <li><a href="contact.html">联系</a></li>
            </ul>
        </nav>
        <!-- 导航栏与首页保持一致 -->
    </header>

    <main class="contact-section">
        <h1>联系我</h1>
        
        <div class="contact-content">
            <!-- 联系表单 -->
            <section class="contact-form">
                <h2>发送消息</h2>
                <form action="https://formspree.io/f/{你的表单ID}" method="POST">
                    <div class="form-group">
                        <label for="name">姓名：</label>
                        <input type="text" id="name" name="name" required>
                    </div>
                    <div class="form-group">
                        <label for="email">邮箱：</label>
                        <input type="email" id="_replyto" name="_replyto" required>
                    </div>
                    <div class="form-group">
                        <label for="message">留言：</label>
                        <textarea id="message" name="message" rows="6" required></textarea>
                    </div>
                    <input type="hidden" name="_subject" value="新消息来自网站联系表单">
                    <button type="submit" class="post_button">发送消息</button>
                </form>
            </section>

            <!-- 联系信息 -->
            <section class="contact-info">
                <h2>直接联系</h2>
                <ul>
                    <li>
                        <span class="icon">📍</span>
                        <p>地球第122412257191918324位居民</p>
                    </li>
                    <li>
                        <span class="icon">📞</span>
                        <p>188********</p>
                    </li>
                    <li>
                        <span class="icon">✉️</span>
                        <p>contact@312*******.qqcom</p>
                    </li>
                </ul>
                
                <div class="social-links">
                    <a href="#" class="social-icon">QQ</a>
                    <a href="#" class="social-icon">WeChat</a>
                </div>
            </section>
        </div>
    </main>

</body>
</html>